package testsuite_homepage;

import org.openqa.selenium.WebDriver;
import org.testng.annotations.Test;

public class BetterExampleWithPOM {



@Test(priority=1)

public void ScriptFalseLoginBetterCodeExampleForPOM() {

String username = "bigtester";

String password = "bigtester";

try
{

WebDriver driver = null;
Homepage nlHomepage = new Homepage(driver);

nlHomepage.getLoginForm().typeUsername(username);

nlHomepage.getLoginForm().typePassword(password);

nlHomepage.getLoginForm().submitFalseLogin();

System.out.println("False Login page appears");

} catch (Exception e)

{

System.out.println("False Login page not appear");

}
}
}